export const dateTypeOptions = [
  {
    label: "日(date)",
    value: "date",
  },
  {
    label: "周(week)",
    value: "week",
  },
  {
    label: "月(month)",
    value: "month",
  },
  {
    label: "年(year)",
    value: "year",
  },
  {
    label: "日期时间(datetime)",
    value: "datetime",
  },
];

export const dateRangeTypeOptions = [
  {
    label: "日期范围(daterange)",
    value: "daterange",
  },
  {
    label: "月范围(monthrange)",
    value: "monthrange",
  },
  {
    label: "日期时间范围(datetimerange)",
    value: "datetimerange",
  },
];

export const colorFormatOptions = [
  {
    label: "hex",
    value: "hex",
  },
  {
    label: "rgb",
    value: "rgb",
  },
  {
    label: "rgba",
    value: "rgba",
  },
  {
    label: "hsv",
    value: "hsv",
  },
  {
    label: "hsl",
    value: "hsl",
  },
];

export const justifyOptions = [
  {
    label: "start",
    value: "start",
  },
  {
    label: "end",
    value: "end",
  },
  {
    label: "center",
    value: "center",
  },
  {
    label: "space-around",
    value: "space-around",
  },
  {
    label: "space-between",
    value: "space-between",
  },
];

export const dateTimeFormat = {
  date: "yyyy-MM-dd",
  week: "yyyy 第 WW 周",
  month: "yyyy-MM",
  year: "yyyy",
  datetime: "yyyy-MM-dd HH:mm:ss",
  daterange: "yyyy-MM-dd",
  monthrange: "yyyy-MM",
  datetimerange: "yyyy-MM-dd HH:mm:ss",
};
